import $request from '../request.js'
export default {
	teamProfile(data) {//查询队伍
		return $request({
			method: 'post',
			url: '/api/app/team/profile',
			data
		})
	},
	createTeam(data) {//创建队伍
		return $request({
			method: 'post',
			url: '/api/app/team/create_team',
			data,
		})
	},
	isCreateTeam(data) {//创建队伍
		return $request({
			method: 'post',
			url: '/api/app/team/is_create_team',
			data,
		})
	},
	teamInfo(data) {//队伍信息
		return $request({
			method: 'post',
			url: '/api/app/team/team_info',
			data,
		})
	},
	teamLevelSetting(data) {//队伍配置
		return $request({
			method: 'post',
			url: '/api/app/team/team_level_setting',
			data,
		})
	},
	teamSumIncomeThisMonth(data) {//查询队伍收入
		return $request({
			method: 'post',
			url: '/api/app/team/team_sum_income_this_month',
			data,
		})
	},
	teamIncomeDetailList(data) {//创建队伍
		return $request({
			method: 'post',
			url: '/api/app/team/team_income_detail_list',
			data,
		})
	},
	teamPage(data) {//获取团队
		return $request({
			method: 'post',
			url: '/api/app/team/team_page',
			data,
		})
	},
	inviteUrl(data) {//获取团队
		return $request({
			method: 'post',
			url: '/api/app/team/invite_url',
			data,
		})
	},
	commonUploadImg(data) {//通用上传图片
		return $request({
			method: 'post',
			url: '/api/app/common/upload_img',
			data,
		})
	},
	commonUploadFile(data) {//通用上传文件
		return $request({
			method: 'post',
			url: '/api/app/common/upload_file',
			data,
		})
	},
	isTeamLeader(data) {//是否为团长
		return $request({
			method: 'post',
			url: '/api/app/team/is_team_leader',
			data,
		})
	},
	copyfile(data) {//测试
		return $request({
			method: 'post',
			url: '/api/app/oss/copyfile',
			data,
		})
	},
}